import { InjectionToken } from "tsyringe";
import { ISender } from "./sender";

export interface IListener<T = any> {
    type: InjectionToken<T>;
    on: (payload: T, manager: ISender) => void;
}


export interface IListenerAll<T = any> {
    on(type: InjectionToken<T>, payload: T, manager: ISender): void;
}
